package com.example.lib_base.utils

/**
 * 常量
 */
class Cons {
    companion object{
        const val BASE_URL = "http://10.161.9.80:7456/"
        const val LOGIN_URL = "/api/front/login"//登录路径
        const val SEND_CODE_URL = "/api/front/sendCode"//发送验证码路径
        const val LOGIN_CODE_URL = "/api/front/login/mobile"//验证码登录
        const val USER_INFO_URL = "/api/front/user"//用户信息
        const val UPDATE_PWD_URL = "/api/front/register/reset"//修改密码
        const val PRODUCT_URL = "/api/front/products"//商品列表
        const val INDEX_URL = "/api/front/index"//首页数据
        const val INDEX_PRODUCT_URL = "/api/front/index/product/{type}"//首页商品数据
        const val COUPON_URL = "/api/front/coupons"//优惠券列表
        const val COUPON_RECEIVE_URL = "/api/front/coupon/receive"//优惠券领取
        const val ADDRESS_URL = "/api/front/address/list"//地址列表
        const val ADDRESS_EDIT_URL = "/api/front/address/edit"//保存用户地址
        const val ADDRESS_DETAIL_URL = "/api/front/address/detail/{id}"//地址详情
        const val DETAIL_URL = "/api/front/product/detail/{id}"//商品详情
        const val ADD_CART_URL = "/api/front/cart/save"//添加购物车
        const val CART_URL = "/api/front/cart/list"//购物车列表
        const val CART_UPDATE_URL = "/api/front/cart/num"//修改购物车数量
        const val CART_DELETE_URL = "/api/front/cart/delete"//删除购物车
        const val CATEGORY_URL = "/api/front/category"//分类列表
        const val COMMENT_URL = "/api/front/reply/list/{id}"//评论列表
        const val ORDER_URL = "/api/front/order/list"//订单列表
        const val COMMENT_SEND_URL = "/api/front/order/comment"//发送评论
        const val ORDER_DELETE_URL = "/api/front/order/cancel"//删除订单
        const val ORDER_REFUND_URL = "/api/front/order/refund"//申请退款
        const val ORDER_CREATE_URL = "/api/front/order/create"//创建订单
        const val PAY_URL = "/api/front/pay/payment"//订单支付
    }
}